package com.gec.oasys.service;

import com.gec.oasys.pojo.SysMenu;
import com.gec.oasys.pojo.SysMenu;
import com.gec.oasys.util.SoulPage;
import org.springframework.stereotype.Service;

import java.util.List;

public interface SysMenuService {
    SysMenu selectByPrimaryKey(Integer id);
    List<SysMenu> querySysMenu(SysMenu sysMenu);
    public int deleteByPrimaryKey(Integer id);
    public int deletesByPrimaryKey(String[] strId);
    public int insert(SysMenu record);
    public int updateByPrimaryKey(SysMenu record);
    public Object dataGrid(SoulPage<SysMenu> soulPage);

    List<SysMenu> findMenuPermssionByRoleId(Integer roleId);

    List<SysMenu> getSysMenuTreeDateById(Integer pid,Integer roleId);

    int addCheckedMenuTreeData(String checkedMenuTreeDataJson,Integer roleId);

    List<SysMenu> getSysMenuTreeDataById(Integer id);

    public List<SysMenu> queryNavMenuTree(SysMenu sysMenu);

    public List<SysMenu> query(SysMenu sysMenu);
}
